/**
 * @method table表格的标题
 */
export const columns = [
  {
    title: '序号',
    dataIndex: 'index',
    slotName: 'index',
    width: 80
  },
  {
    title: '资源名称',
    dataIndex: 'name',
    slotName: 'name',
    ellipsis: true,
  },
  {
    title: '资源版本',
    dataIndex: 'version',
    slotName: 'version',
    ellipsis: true,
  },
  {
    title: '关联状态',
    dataIndex: 'sync_consanguinity',
    slotName: 'sync_consanguinity',
    ellipsis: true,
  },
  {
    title: '是否根资源',
    dataIndex: 'is_root',
    slotName: 'is_root',
    ellipsis: true,
    width: 300,
  },
  {
    title: '添加时间',
    dataIndex: 'created_time',
    slotName: 'created_time',
    width: 220,
  },
  {
    title: '更新时间',
    dataIndex: 'update_time',
    slotName: 'update_time',
    width: 220,
  },
  {
    title: '操作',
    slotName: 'operator',
    width: 300,
    fixed: 'right',
  }
];

export const operatorData = [
    {  label: '查看资源',code: 'view'},
    {  label: '编辑',code: 'edit'},
    {  label: '删除',code: 'delete' },
    {  label: '查看关联',code: 'source' },
    {  label: '更新',code: 'update' },
    {  label: '查看版本',code: 'version'}
]
